package com.ijiuchuang.jc_localization.bean.lite;

import com.litesuits.orm.db.annotation.Column;
import com.litesuits.orm.db.annotation.PrimaryKey;
import com.litesuits.orm.db.annotation.Table;
import com.litesuits.orm.db.enums.AssignType;

/**
 * Created by Veev on 2016/6/20
 *
 * @link 384506557@qq.com
 */
@Table("SettsLocation")
public class SettsLocation extends BaseModel {

    // 设置
    public static final String SETTINGS_MAP_SCENE = "settings.map.MAP_SCENE";

    public static final String COL_KEY = "key";
    public static final String COL_MAP = "map";

    @PrimaryKey(AssignType.BY_MYSELF)
    @Column(COL_KEY)
    private String key;

    @Column(COL_MAP)
    private Map map;

    public SettsLocation(String key) {
        this.key = key;
    }

    public SettsLocation(String key, Map map) {
        this.key = key;
        this.map = map;
    }

    @Override
    public String toString() {
        // 只打印出不为空的 value
        return "SettsLocation{" +
                " key='" + key + '\'' +
                " map = " + map +
                "} " + super.toString() + "\n";
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Map getMap() {
        return map;
    }

    public void setMap(Map map) {
        this.map = map;
    }
}
